package com.joysuch.wwyt.repeatsubmit.exception;

import com.joysuch.wwyt.core.enums.Status;

public class RepeatSubmitException extends RuntimeException{
    private static final long serialVersionUID = 1L;

    private int code;

    public RepeatSubmitException(Status status) {
        super(status.getMsg());
        this.code = status.getCode();
    }

    public RepeatSubmitException(int code, String msg) {
        super(msg);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
